<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加学生</title>
</head>
<body>
<div>
    <form action="/stu/add" method="post">
        姓名:<input type="text" name="stuName"><br>
        班级:<select name="stuClass">
            <option th:value="${classes.classId}" th:each="classes:${classesList}" th:text="${classes.className}"></option>
        </select><br>
        <input type="submit" value="添加">
    </form>

</div>
</body>
</html>